package com.sram.controller.tree;

import com.alibaba.fastjson.JSON;
import com.google.common.base.Strings;
import com.sram.entity.User;
import com.sram.service.UserService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;

import javax.annotation.Resource;
import javax.imageio.ImageIO;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;

@Controller
@RequestMapping("/tree")
public class TreeController {

	@Resource
	private UserService userService;

	@RequestMapping(value="/zTree")
	public  String toTree() throws IOException {

		return "tree/zTree";
	}

}
